package com.mccree.cloud.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mccree.cloud.dao.entity.PaymentEntity;
import com.mccree.cloud.dao.mapper.PaymentMapper;
import com.mccree.cloud.service.PaymentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: MccRee
 * @Date: 2022/5/31 16:24
 */
@Service("paymentService")
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, PaymentEntity> implements PaymentService {
    @Override
    public void createOne(PaymentEntity entity) {
        baseMapper.insert(entity);
    }

    @Override
    public List<PaymentEntity> getAll() {
        return baseMapper.selectList(new QueryWrapper<PaymentEntity>());
    }
}
